﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="CrmMetadata" targetNamespace="http://tempuri.org/CrmMetadata.xsd" xmlns:mstns="http://tempuri.org/CrmMetadata.xsd" xmlns="http://tempuri.org/CrmMetadata.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections />
        <Tables />
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="CrmMetadata" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="CrmMetadata" msprop:Generator_UserDSName="CrmMetadata">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Entity" msprop:Generator_TableClassName="EntityDataTable" msprop:Generator_TableVarName="tableEntity" msprop:Generator_TablePropName="Entity" msprop:Generator_RowDeletingName="EntityRowDeleting" msprop:Generator_RowChangingName="EntityRowChanging" msprop:Generator_RowEvHandlerName="EntityRowChangeEventHandler" msprop:Generator_RowDeletedName="EntityRowDeleted" msprop:Generator_UserTableName="Entity" msprop:Generator_RowChangedName="EntityRowChanged" msprop:Generator_RowEvArgName="EntityRowChangeEvent" msprop:Generator_RowClassName="EntityRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="LogicalName" msprop:Generator_ColumnVarNameInTable="columnLogicalName" msprop:Generator_ColumnPropNameInRow="LogicalName" msprop:Generator_ColumnPropNameInTable="LogicalNameColumn" msprop:Generator_UserColumnName="LogicalName" type="xs:string" minOccurs="0" />
              <xs:element name="SchemaName" msprop:Generator_ColumnVarNameInTable="columnSchemaName" msprop:Generator_ColumnPropNameInRow="SchemaName" msprop:Generator_ColumnPropNameInTable="SchemaNameColumn" msprop:Generator_UserColumnName="SchemaName" type="xs:string" minOccurs="0" />
              <xs:element name="DisplayName" msprop:Generator_ColumnVarNameInTable="columnDisplayName" msprop:Generator_ColumnPropNameInRow="DisplayName" msprop:Generator_ColumnPropNameInTable="DisplayNameColumn" msprop:Generator_UserColumnName="DisplayName" type="xs:string" minOccurs="0" />
              <xs:element name="ObjectTypeCode" msprop:Generator_ColumnVarNameInTable="columnObjectTypeCode" msprop:Generator_ColumnPropNameInRow="ObjectTypeCode" msprop:Generator_ColumnPropNameInTable="ObjectTypeCodeColumn" msprop:Generator_UserColumnName="ObjectTypeCode" type="xs:string" minOccurs="0" />
              <xs:element name="OwnershipType" msprop:Generator_ColumnVarNameInTable="columnOwnershipType" msprop:Generator_ColumnPropNameInRow="OwnershipType" msprop:Generator_ColumnPropNameInTable="OwnershipTypeColumn" msprop:Generator_UserColumnName="OwnershipType" type="xs:string" minOccurs="0" />
              <xs:element name="PrimaryIdAttribute" msprop:Generator_ColumnVarNameInTable="columnPrimaryIdAttribute" msprop:Generator_ColumnPropNameInRow="PrimaryIdAttribute" msprop:Generator_ColumnPropNameInTable="PrimaryIdAttributeColumn" msprop:Generator_UserColumnName="PrimaryIdAttribute" type="xs:string" minOccurs="0" />
              <xs:element name="PrimaryNameAttribute" msprop:Generator_ColumnVarNameInTable="columnPrimaryNameAttribute" msprop:Generator_ColumnPropNameInRow="PrimaryNameAttribute" msprop:Generator_ColumnPropNameInTable="PrimaryNameAttributeColumn" msprop:Generator_UserColumnName="PrimaryNameAttribute" type="xs:string" minOccurs="0" />
              <xs:element name="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_UserColumnName="Description" type="xs:string" minOccurs="0" />
              <xs:element name="ActivityTypeMask" msprop:Generator_ColumnVarNameInTable="columnActivityTypeMask" msprop:Generator_ColumnPropNameInRow="ActivityTypeMask" msprop:Generator_ColumnPropNameInTable="ActivityTypeMaskColumn" msprop:Generator_UserColumnName="ActivityTypeMask" type="xs:string" minOccurs="0" />
              <xs:element name="CanBePrimaryEntityInRelationship" msprop:Generator_ColumnVarNameInTable="columnCanBePrimaryEntityInRelationship" msprop:Generator_ColumnPropNameInRow="CanBePrimaryEntityInRelationship" msprop:Generator_ColumnPropNameInTable="CanBePrimaryEntityInRelationshipColumn" msprop:Generator_UserColumnName="CanBePrimaryEntityInRelationship" type="xs:string" minOccurs="0" />
              <xs:element name="CanBeRelatedEntityInRelationship" msprop:Generator_ColumnVarNameInTable="columnCanBeRelatedEntityInRelationship" msprop:Generator_ColumnPropNameInRow="CanBeRelatedEntityInRelationship" msprop:Generator_ColumnPropNameInTable="CanBeRelatedEntityInRelationshipColumn" msprop:Generator_UserColumnName="CanBeRelatedEntityInRelationship" type="xs:string" minOccurs="0" />
              <xs:element name="CanCreateAttributes" msprop:Generator_ColumnVarNameInTable="columnCanCreateAttributes" msprop:Generator_ColumnPropNameInRow="CanCreateAttributes" msprop:Generator_ColumnPropNameInTable="CanCreateAttributesColumn" msprop:Generator_UserColumnName="CanCreateAttributes" type="xs:string" minOccurs="0" />
              <xs:element name="IsActivity" msprop:Generator_ColumnVarNameInTable="columnIsActivity" msprop:Generator_ColumnPropNameInRow="IsActivity" msprop:Generator_ColumnPropNameInTable="IsActivityColumn" msprop:Generator_UserColumnName="IsActivity" type="xs:string" minOccurs="0" />
              <xs:element name="IsActivityParty" msprop:Generator_ColumnVarNameInTable="columnIsActivityParty" msprop:Generator_ColumnPropNameInRow="IsActivityParty" msprop:Generator_ColumnPropNameInTable="IsActivityPartyColumn" msprop:Generator_UserColumnName="IsActivityParty" type="xs:string" minOccurs="0" />
              <xs:element name="IsConnectionsEnabled" msprop:Generator_ColumnVarNameInTable="columnIsConnectionsEnabled" msprop:Generator_ColumnPropNameInRow="IsConnectionsEnabled" msprop:Generator_ColumnPropNameInTable="IsConnectionsEnabledColumn" msprop:Generator_UserColumnName="IsConnectionsEnabled" type="xs:string" minOccurs="0" />
              <xs:element name="IsCustomEntity" msprop:Generator_ColumnVarNameInTable="columnIsCustomEntity" msprop:Generator_ColumnPropNameInRow="IsCustomEntity" msprop:Generator_ColumnPropNameInTable="IsCustomEntityColumn" msprop:Generator_UserColumnName="IsCustomEntity" type="xs:string" minOccurs="0" />
              <xs:element name="IsCustomizable" msprop:Generator_ColumnVarNameInTable="columnIsCustomizable" msprop:Generator_ColumnPropNameInRow="IsCustomizable" msprop:Generator_ColumnPropNameInTable="IsCustomizableColumn" msprop:Generator_UserColumnName="IsCustomizable" type="xs:string" minOccurs="0" />
              <xs:element name="IsValidForAdvancedFind" msprop:Generator_ColumnVarNameInTable="columnIsValidForAdvancedFind" msprop:Generator_ColumnPropNameInRow="IsValidForAdvancedFind" msprop:Generator_ColumnPropNameInTable="IsValidForAdvancedFindColumn" msprop:Generator_UserColumnName="IsValidForAdvancedFind" type="xs:string" minOccurs="0" />
              <xs:element name="MetadataId" msprop:Generator_ColumnVarNameInTable="columnMetadataId" msprop:Generator_ColumnPropNameInRow="MetadataId" msprop:Generator_ColumnPropNameInTable="MetadataIdColumn" msprop:Generator_UserColumnName="MetadataId" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>